package edu.hrbeu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


/**
 * @author wzq
 * @create 2022-01-06-12:03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "t_discount",resultMap = "rmDiscount")
public class Discount {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String type;

    @TableField(value = "category_id",property = "category.id")
    private Category category;
    private Float rate;
    private Boolean dateLimit;
    private Date beginDate;
    private Date endDate;
    private Boolean state;
}
